#include "classvaluecontainer.h"

ClassValueContainer::ClassValueContainer(QObject* parent):mToCnt{0},mToWgt{0}
{
}

void ClassValueContainer::calValues(int chkIndex,float net)//chkIndex 1-12
{
    mToCnt[chkIndex-1]++;
    mToWgt[chkIndex-1]+=net;
}

void ClassValueContainer::clear()
{
    for(int i = 0;i<12;i++)
    {
        mToCnt[i] = 0;
        mToWgt[i] = 0;
    }
}


